package cn.juni.service.impl;

import cn.juni.dao.ISysLogDao;
import cn.juni.pojo.SysLog;
import cn.juni.service.ISysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Juni
 * @date 2021/3/3
 */
@Service
public class SysLogServiceImpl implements ISysLogService {

    @Autowired
    ISysLogDao sysLogDao;

    public int insertLog(SysLog sysLog) {
        return sysLogDao.insertLog(sysLog);
    }

    public List<SysLog> findAll() {
        return sysLogDao.findAll();
    }
}
